package com.ourclass.model;

import java.util.Set;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
@PersistenceCapable(detachable = "true")
public class Diario {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key id;
	private Disciplina disciplina;
	private Professor professor;
	private Set<Aula> aulasMinistradas;
	
	public Diario(Disciplina disciplina, Professor professor,
			Set<Aula> aulasMinistradas) {
		super();
		this.disciplina = disciplina;
		this.professor = professor;
		this.aulasMinistradas = aulasMinistradas;
	}

	public Diario(Disciplina disciplina, Professor professor) {
		super();
		this.disciplina = disciplina;
		this.professor = professor;
	}
	
	public Diario(Key id){
		this.id = id;
	}

	public Diario() {
		super();
	}

	public Key getId() {
		return id;
	}

	public void setId(Key id) {
		this.id = id;
	}

	public Disciplina getDisciplina() {
		return disciplina;
	}

	public void setDisciplina(Disciplina disciplina) {
		this.disciplina = disciplina;
	}

	public Professor getProfessor() {
		return professor;
	}

	public void setProfessor(Professor professor) {
		this.professor = professor;
	}

	public Set<Aula> getAulasMinistradas() {
		return aulasMinistradas;
	}

	public void setAulasMinistradas(Set<Aula> aulasMinistradas) {
		this.aulasMinistradas = aulasMinistradas;
	}
	
	
}
